package cn.edu.scau.cmi.shishuai.exercise5;

class Sum{
	int x, y, z;
	static int getContinueSUm(int start, int end) {
		int sum = 0;
		for(int i=start; i <= end; ++i) {
			sum = sum + i;
		}
		return sum;
	}
}

public class Example5_8 {
	public static void main(String[] args) {
		int result = Sum.getContinueSUm(0, 100);
		System.out.println(result);
	}
}
